package world.snowcrystal.configuration;


import com.jfinal.template.Engine;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class TemplateEngineConfiguration {


    @Bean
    public Engine templateEngine() {
        Engine engine = new Engine();
        engine.setDevMode(true);
        Engine.setFastMode(true);
        Engine.setChineseExpression(true);
        engine.setCompressorOn(' ');
        engine. setBaseTemplatePath(null);
        engine.setToClassPathSourceFactory();
        return engine;
    }
}
